{include file="header.htm"}
<h3 id="tip" style="color:red;"></h3>
<form id="registerform" method="post" action="{geturl('/member-account-doregister.htm')}">
    用户名：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    确认密码：<input type="password" name="confirmpassword"><br>
    验证码：<img src="{geturl('/member-misc-captcha.htm')}"><input type="text" name="captcha"><br>
    <input type="submit" value="注册">
</form><br>
<a href="{geturl('/')}">首页</a> |
<a href="{geturl('/member-login.htm')}">登陆</a> |
<a href="{geturl('/member-login-qq.htm')}">QQ登陆</a> |
<a href="{geturl('/member-login-qqweibo.htm')}">QQ微博登陆</a> |
<a href="{geturl('/member-login-weibo.htm')}">新浪微博登陆</a> |
<a href="{geturl('/member-login-taobao.htm')}">淘宝登陆</a>
<a href="{geturl('/member-login-renren.htm')}">人人登陆</a> |
<a href="{geturl('/member-login-baidu.htm')}">百度登陆</a>
<script type="text/javascript" src="{geturl('/static/js/jquery.form.js')}"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
    jQuery('#registerform').ajaxForm({
        'success' : function(s) {
            if(s == '1') {
                location.href = '/member.htm';
                return false;
            } else if(s == 'error_captcha') {
                alert('验证码输入错误！');
            } else if(s == 'error_username') {
                alert('用户名输入错误！');
            } else if(s == 'error_password') {
                alert('密码输入错误！');
            } else if(s == 'two_password_not_equal') {
                alert('两次密码输入不一致！');
            } else if(s == 'user_exists') {
                alert('该用户已经存在！');
            } else if(s == 'db_error') {
                alert('操作数据库出错！');
            }
        }
    });
    
    if('1' == getcookie('active_qq')) {
        jQuery('#tip').html('QQ帐号绑定中...');
    } else if('1' == getcookie('active_weibo')) {
        jQuery('#tip').html('新浪微博帐号绑定中...');
    } else if('1' == getcookie('active_qqweibo')) {
        jQuery('#tip').html('QQ微博帐号绑定中...');
    } else if('1' == getcookie('active_taobao')) {
        jQuery('#tip').html('淘宝帐号绑定中...');
    } else if('1' == getcookie('active_renren')) {
        jQuery('#tip').html('人人帐号绑定中...');
    } else if('1' == getcookie('active_baidu')) {
        jQuery('#tip').html('百度帐号绑定中...');
    }
});
</script>
{include file="footer.htm"}